package com.yunfei.bo.msgMsgContext;
import com.yunfei.entity.msgMsgContext.*;
import com.yunfei.utils.string.StringUtil;
/**
*@tablename MSG_MSG_CONTEXT
*@author zhengyunfei
*@createDate Thu Feb 21 13:58:01 CST 2019
*/ 
public class MsgMsgContextBo implements java.io.Serializable{
	private String msgCfgId;
	private String paraNm;
	private String paraId;
	private String paraOrd;
	private String effeFlg;
	private String field;
	private String order;
   /**
		* 更改排序字段
		* @return
		*/
   public String getField() {
		   return field;
   }
   public void setField(String field) {
		   this.field = field;
   }
   public String getOrder() {
		   return order;
   }
   public void setOrder(String order) {
		   this.order = order;
   }
	private int curNo;
	public int getCurNo() {
		int value=(curNo-1)*curSize;
		return value;
	}	
	public void setCurNo(int curNo) {
		this.curNo = curNo;
	}
	private int curSize;
	public int getCurSize() {
		return curSize;
	}
	public void setCurSize(int curSize) {
		this.curSize = curSize;
	}
	public void setMsgCfgId(String msgCfgId){
		this.msgCfgId=msgCfgId;
	}
	public String getMsgCfgId(){
		return msgCfgId;
	}
	public void setParaNm(String paraNm){
		this.paraNm=paraNm;
	}
	public String getParaNm(){
		return paraNm;
	}
	public void setParaId(String paraId){
		this.paraId=paraId;
	}
	public String getParaId(){
		return paraId;
	}
	public void setParaOrd(String paraOrd){
		this.paraOrd=paraOrd;
	}
	public String getParaOrd(){
		return paraOrd;
	}
	public void setEffeFlg(String effeFlg){
		this.effeFlg=effeFlg;
	}
	public String getEffeFlg(){
		return effeFlg;
	}
	public static MsgMsgContextEntity boToEntity(MsgMsgContextBo bo){
		MsgMsgContextEntity entity=new MsgMsgContextEntity();
		entity.setMsgCfgId(bo.getMsgCfgId());
		entity.setParaNm(bo.getParaNm());
		entity.setParaId(bo.getParaId());
		entity.setParaOrd(bo.getParaOrd());
		entity.setEffeFlg(bo.getEffeFlg());
		return entity;
	}
	public static MsgMsgContextBo entityToBo(MsgMsgContextEntity bo){
		MsgMsgContextBo entity=new MsgMsgContextBo();
		entity.setMsgCfgId(bo.getMsgCfgId());
		entity.setParaNm(bo.getParaNm());
		entity.setParaId(bo.getParaId());
		entity.setParaOrd(bo.getParaOrd());
		entity.setEffeFlg(bo.getEffeFlg());
		return entity;
	}
	public static String changeFieldColumn(String field){
		String result="";
			if(!StringUtil.isNullOrEmpty(field)){
				if(field.equals("msgCfgId")){
					result="MSG_CFG_ID";
				}
				if(field.equals("paraNm")){
					result="PARA_NM";
				}
				if(field.equals("paraId")){
					result="PARA_ID";
				}
				if(field.equals("paraOrd")){
					result="PARA_ORD";
				}
				if(field.equals("effeFlg")){
					result="EFFE_FLG";
				}
		}
		return result;
	}
}

